<template>
  <div>
    <button @click="go('home')">home</button>
    <button @click="go('work')">work</button>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {
    console.log(this);
  },
  methods: {
    go(e) {
      this.$router.push({name:e,params:{a:e}});
    },
  },
};
</script>

<style>
</style>